import request from '@/utils/request'

export function listWelding(query) {
  return request({
    url: '/Welding/welding/list',
    method: 'get',
    params: query
  })
}

export function listAllWelding(query) {
  return request({
    url: '/Welding/welding/listAll',
    method: 'get',
    params: query
  })
}

export function getWelding(id) {
  return request({
    url: '/Welding/welding/' + id,
    method: 'get'
  })
}

// 新增
export function addWelding(data) {
  return request({
    url: '/Welding/welding',
    method: 'post',
    data: data
  })
}

// 修改
export function updateWelding(data) {
  return request({
    url: '/Welding/welding',
    method: 'put',
    data: data
  })
}

// 删除
export function delWelding(id) {
  return request({
    url: '/Welding/welding/' + id,
    method: 'delete'
  })
}

export function generateWelding(query) {
  return request({
    url: '/Welding/welding/generate',
    method: 'get',
    params: query
  })
}


